#Requires AutoHotkey v2.0

~CapsLock::
{
    while GetKeyState("CapsLock", "T")
    {
        ; Send "e"
        ; Send "{F5}"
        ; ControlSend "e" , "ahk_exe EM-Win64-Shipping.exe"
        ; ControlSend "P", "Edit1", "ahk_exe msedge.exe"
        ; ControlSend "e", , "二重螺旋"
        Send "{shift}"
        Sleep 2000
    }
}

; loop
; {
    ; Send "e"
    ; Send "{F5}"
    ; ControlSend "e" , "", "ahk_exe EM-Win64-Shipping.exe"
    ; ControlSend "{F5}", "Edit1", "ahk_pid 5268"
    ; ControlSend "{F5}", , "ahk_exe msedge.exe"
    ; ControlSend "e", , "二重螺旋"
;     Sleep 3000
; }

; 禁止 Ctrl+Esc 组合键
^Esc::Send "{Esc}"

